<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@ include file="../header.jsp"%>
<%@taglib prefix ="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	List<HashMap> list = (List<HashMap>)request.getAttribute("rboard");
%>

<div id="sub_img">
	<img src="<%=path%>/images/13584897220.jpg" width="1000" height="372"
		alt="">
</div>


<div id="container">
	<div id="scontents">
		<script type="text/javascript">
			initNavigation('7');
		</script>
		<script language="JavaScript">
			function MailTo(no) {
				hiddenframe.document.location.href = 'http://h-ps011u.monowebs.co.kr/board/index.php?mode=MailTo&board=noticeboard&no='
						+ no;
			}
		</script>
		<script type="text/javascript" src="/js/script.js"></script>
		<script type="text/javascript" src="/js/common.js"></script>
		<h2 id="sub_title">
			<span class="Etitle">QUESTION</span><span class="ktitle">이용문의</span>
		</h2>
		<script language="javascript">
			var DefaultURL = 'http://h-ps011u.monowebs.co.kr/board/index.php?board=noticeboard&key=&keyfield=';
			function change_sort(how, is_sort) {
				how += (is_sort) ? "_a" : "_d";
				document.location.href = DefaultURL + '&category=&reply=&sort='
						+ how;
			}
		</script>

		<div id="notice">
			<div id="select_area"></div>
			<div id="board_list">
			<c:set var="pageNumber" value="${pageInfo.pageNumber}"/>
			<c:set var="pageSize" value="${requestScope.pageInfo.pageSize}"/>
			<c:set var="page_Info" value="pageNumber=${pageNumber}&pageSize=${pageSize}"/>
				<table cellpadding="0" cellspacing="0" border="0" width="100%" summary="" class="li_bg1">
					<colgroup>
						<col width="4%">
						<col width="30%">
						<col width="5%">
						<col width="10%">
						<col width="3%">
					</colgroup>
					<thead>
						<tr>

							<th scope="col">No</th>
							<th scope="col">제목</th>
							<th scope="col">글쓴이</th>
							<th scope="col">등록일</th>
							<th scope="col" class="borderRno">조회</th>
						</tr>
					</thead>

					<tbody>
					
						<c:forEach var="nb" end="3" items="${Nboard}">
							<tr onclick="location.href='<%=path%>/BoardDetail.admin?nb_no=${nb.NB_NO}&ripple_subid=${nb.NB_NO}'" style="background-color: #8c8a7c;">
								<td>::: 공지 :::</td>
								<td class="board_title boardlist_title">
								${nb.NB_TITLE}
								<!-- 게시판 리스트가 쭉 나오는데 게시판 제목을 클릭하면 detail로 넘어간다.
								넘어갈때 rb_no 는 1번째 글인지 2번째 글인지 알려주는거고 rb_gno 는 게시글에 대한
								리플, 리플된 아이디를 넘기는것이다. 그 값을 넘겨서 받는다 -->
								</td>
								<td>${nb.NB_NAME}</td>
								<td>${nb.NB_DATE}</td>
								<td>${nb.NB_HIT}</td>
							</tr>
						</c:forEach>
					
						<c:forEach var="li" items="${rboard}">
							<tr onclick="location.href='<%=path%>/QboardDetail.rboard?rb_no=${li.RB_NO}&ripple_subid=${li.RB_NO}'">

								<td>${li.RB_NO}</td>

								<td class="board_title boardlist_title">
								${li.RB_TITLE}
								<!-- 게시판 리스트가 쭉 나오는데 게시판 제목을 클릭하면 detail로 넘어간다.
								넘어갈때 rb_no 는 1번째 글인지 2번째 글인지 알려주는거고 rb_gno 는 게시글에 대한
								리플, 리플된 아이디를 넘기는것이다. 그 값을 넘겨서 받는다 -->
								</td>

								<td>${li.RB_NAME}</td>
								<td>${li.RB_DATE}</td>
								<td>${li.RB_HIT}</td>
							</tr>
						</c:forEach>
					</tbody>
					
				</table>
				
				<div class="btn_submit2" style="display:inline; float:right; font: bold 12px/12px 굴림,Gulim,sans-serifl; border-left:1px solid #7b7a6e;" onclick="javascript:location.href='<%=path%>/Ara_board/QboardWrite.jsp'">
					<!-- <input type="button" name="submit" value="취소" /> -->
				글쓰기
				</div>
				<div class="text_11cc" style="text-align: center; padding:8px; width:860px; float:right;">${pageInfo.pagingHtml} ${requestScope.pageInfo.pagingStatus}</div>
				
			</div>
			

			
			<script language="javascript">
				function on_set() {
					var f = document.search_fm;
					var str = "";
					if (f.board_name.checked)
						str += "|board_name";
					if (f.board_title.checked)
						str += "|board_title";
					if (f.board_content.checked)
						str += "|board_content";
					if (str.length > 0)
						str = str.substr(1);
					f.keyfield.value = str;
				}

				function SearchSubmit() {
					form = document.search_fm;
					if (!form.keyfield.value) {
						alert("검색대상을 선택하세요.");
						return false;
					}
					if (!form.key.value) {
						alert("검색어를 입력하세요.");
						form.key.focus();
						return false;
					}
					return true;
				}

				function FormSearchSubmit() {
					if (SearchSubmit())
						document.search_fm.submit();
					else
						return;
				}

				function DefaultKfield() {
					var f = document.search_fm;
					if (f.keyfield.value == "")
						f.keyfield.value = "board_title";
					var kfield = f.keyfield.value.split("|");
					for (k = 0; k < kfield.length; k++) {
						eval("document.search_fm." + kfield[k]).checked = true;
					}
				}
			</script>
			
		</div>
		﻿
	</div>

	<%@include file="../footer.jsp"%>